package paritclecontainer2d;

import java.awt.Color;
import java.awt.Graphics;

public abstract class Particle {

	public static final int TTL_CAP = 1000;

	protected int x;
	protected int y;
	
	protected double initialTTL;
	protected double ttl;
	
	
	public Particle(){
		ttl = TTL_CAP;
	}
		
	public double getTimeToLife(){
		return ttl;	
	}

	public void setTimeToLife(double ttl){
		this.ttl = ttl;
	}

	public int getX() {
		return x;
	}


	public void setX(int x) {
		this.x = x;
	}


	public int getY() {
		return y;
	}


	public void setY(int y) {
		this.y = y;
	}

	public abstract void paintComponent(Graphics arg);
	public abstract Object clone() throws CloneNotSupportedException;
}
